/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package huffmantree;

/**
 *
 * @author Administrator
 */
public class StringDetails {

    private String word, code;
    private int frequency;

    public StringDetails(){
        word = null;
        frequency = 0;
    }

    public StringDetails(String s, int f){
        word = s;
        frequency = f;
    }

    public void setString(String s){
        word = s;
    }

    public void setFrequency(int f){
        frequency = f;
    }

    public void setCode(String c){
        code = c;
    }

    public String getString(){
        return(word);
    }

    public int getFrequency(){
        return(frequency);
    }

    public String getCode(){
        return(code);
    }
}
